package com.zdy.im.user.vo.request;


import com.sixeco.framework.common.api.ApiDesc;

/**
* @ClassName: ImChatMessageRequestVo.java
* @Description: 的数据交互处理类
 * @Author 作者 : zdy
 * @CreateDate 创建时间: 2021-02-30
* @version V1.0.0
* <p>
    * ----------------------------------------------------------------------------
    *  modifyer    modifyTime                 comment
    *
    * ----------------------------------------------------------------------------
    * </p>
*/
public class ImRoomChatMessageHistoryRequestVo extends HttpRequestByPageSizeVo {


 		/** sendUserId 消息来源用户名  */
 		@ApiDesc(value = "消息来源用户名", required = 0)
 		private long sendUserId;
		/** toId 消息的接收id  */
		@ApiDesc(value = "消息的接收id", required = 0)
		private long toId;
 		/** globalId 消息唯一值id,使用雪花算法生成唯一id;用于排序和搜索使用  */
 		@ApiDesc(value = "消息唯一值id,用于排序和搜索使用,刷新时为0", required = 0)
 		private long globalId;
 		/** messageType 1.文本,包括表情,2.图片,3.视频,4.名片,5.文本和图片,6.文本和视频,7.图片和视频,8.分享群  */
// 		@ApiDesc(value = "1.文本,包括表情,2.图片,3.视频,4.名片,5.文本和图片,6.文本和视频,7.图片和视频,8.分享群", required = 0)
 		private int messageType;


    public static ImRoomChatMessageHistoryRequestVo build(){
        return new ImRoomChatMessageHistoryRequestVo();
    }


	public ImRoomChatMessageHistoryRequestVo toSendUserId(long sendUserId) {
		this.sendUserId = sendUserId;
		return this;
	}

	public ImRoomChatMessageHistoryRequestVo toToId(long toId) {
		this.toId = toId;
		return this;
	}

	public ImRoomChatMessageHistoryRequestVo toGlobalId(long globalId) {
		this.globalId = globalId;
		return this;
	}

	public ImRoomChatMessageHistoryRequestVo toMessageType(int messageType) {
		this.messageType = messageType;
		return this;
	}

	public long getSendUserId() {
		return sendUserId;
	}

	public void setSendUserId(long sendUserId) {
		this.sendUserId = sendUserId;
	}

	public long getToId() {
		return toId;
	}

	public void setToId(long toId) {
		this.toId = toId;
	}

	public long getGlobalId() {
		return globalId;
	}

	public void setGlobalId(long globalId) {
		this.globalId = globalId;
	}

	public int getMessageType() {
		return messageType;
	}

	public void setMessageType(int messageType) {
		this.messageType = messageType;
	}
}
